package com.mdd.admin.service;

import com.mdd.admin.validate.commons.PageValidate;
import com.mdd.admin.validate.DeptFlowCreateValidate;
import com.mdd.admin.validate.DeptFlowUpdateValidate;
import com.mdd.admin.validate.DeptFlowSearchValidate;
import com.mdd.admin.vo.DeptFlowListedVo;
import com.mdd.admin.vo.DeptFlowDetailVo;
import com.mdd.admin.vo.system.SystemAuthDeptVo;
import com.mdd.common.core.PageResult;

/**
 * 部门流程关联服务接口类
 * @author LikeAdmin
 */
public interface IDeptFlowService {

    /**
     * 部门流程关联列表
     *
     * @author LikeAdmin
     * @param pageValidate 分页参数
     * @param searchValidate 搜索参数
     * @return PageResult<DeptFlowListedVo>
     */
    PageResult<DeptFlowListedVo> list(PageValidate pageValidate, DeptFlowSearchValidate searchValidate);

    /**
     * 部门流程关联列表
     *
     * @author LikeAdmin
     * @param pageValidate 分页参数
     * @param searchValidate 搜索参数
     * @return PageResult<DeptFlowListedVo>
     */
    PageResult<SystemAuthDeptVo> deptList(PageValidate pageValidate, DeptFlowSearchValidate searchValidate);

    /**
     * 部门流程关联详情
     *
     * @author LikeAdmin
     * @param id 主键ID
     * @return DeptFlowDetailVo
     */
    DeptFlowDetailVo detail(Integer id);

    /**
     * 部门流程关联详情
     *
     * @author LikeAdmin
     * @param deptid
     * @return DeptFlowDetailVo
     */
    DeptFlowDetailVo detailByAll(Integer deptid,String type);

    /**
     * 部门流程关联详情
     *
     * @author LikeAdmin
     * @return DeptFlowDetailVo
     */
    DeptFlowDetailVo detailByDeptId(String proposalType,String type);
    /**
     * 部门流程关联新增
     *
     * @author LikeAdmin
     * @param createValidate 参数
     */
    void add(DeptFlowCreateValidate createValidate);

    /**
     * 部门流程关联编辑
     *
     * @author LikeAdmin
     * @param updateValidate 参数
     */
    void edit(DeptFlowUpdateValidate updateValidate);

    /**
     * 部门流程关联删除
     *
     * @author LikeAdmin
     * @param id 主键ID
     */
    void del(Integer id);

}
